<template>
  <div class="doneArea" ref="doneArea">
    <doneArea :height="height" class="leftArea"></doneArea>
  </div>
</template>

<script>
import doneArea from "@/views/index/Index/pages/doneArea";
export default {
  components: {
    doneArea
  },
  data () {
    return {
      height: 200
    };
  },
  mounted () {
    this.$nextTick(() => {
      if (this.$refs.doneArea) {
        this.height = this.$refs.doneArea.offsetHeight;
        console.log(this.height);
      }
    });
  }
};
</script>

<style lang="less" scoped>
.doneArea {
  width: 100%;
  height: 100%;
  background: #ffffff;
}
.leftArea {
  width: 100%;
  background-color: #ffffff;
  padding: 0 8px;
}
</style>